<?php

	$q = get_posts('post_type=mastercontrol&posts_per_page=1');
	
	$qq = get_post_custom_values('appid', $q[0]->ID);
	if($qq[0] == ""){$APP_ID = "";}else{$APP_ID = $qq[0];}
	define("APP_ID", $APP_ID);
	
	$qq = get_post_custom_values('appsecret', $q[0]->ID);
	if($qq[0] == ""){$SECRET_KEY = "";}else{$SECRET_KEY = $qq[0];}
	define("SECRET_KEY", $SECRET_KEY);

	$qq = get_post_custom_values('facebookurl', $q[0]->ID);
	if($qq[0] == ""){$FB_URL = "";}else{$FB_URL = $qq[0];}
	define("FB_URL", $FB_URL);

	$qq = get_post_custom_values('fbpage_only', $q[0]->ID);
	if($qq[0] == ""){$FBPAGE_ONLY = false;}else{$FBPAGE_ONLY = true;}
	define("FBPAGE_ONLY", $FBPAGE_ONLY);
    
?>